import 'package:flutter/material.dart';
import 'package:core_package/core_package.dart';
import 'package:flutter_app_unionad/main/protocol_page.dart';
import 'package:flutter_app_unionad/ui/basice/base_center_alert_widget.dart';

class AboutUsWidget extends BaseCloseAlertWidget {
  @override
  Widget build(BuildContext context) {
    return super.build(context);
  }

  @override
  Widget buildContent(BuildContext context) {
    // TODO: implement buildContent
    return Column(
      children: [
        MySizeBox(height: 30),
        Text(
          "版本号:${HttpRequest.version}",
          style: TextStyle(
            color: MyColors.color_27_27_27,
            fontWeight: MyFontWeight.bold,
            fontSize: MyFont.font16,
          ),
        ),
        MySizeBox(height: 30),
        Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            GestureDetector(
              onTap: (){
                NavigatorUtil.push(context, ProtocolPage.routeName,arguments: 1);

              },
              child: Text(
                "注册协议",
                style: TextStyle(
                  color: MyColors.color_27_27_27,
                  fontSize: MyFont.font13,
                  fontWeight: MyFontWeight.regular,
                  decoration: TextDecoration.underline,
                ),
              ),
            ),
            SizedBox(width: 2),
            Text(
              "与",
              style: TextStyle(
                color: MyColors.color_27_27_27,
                fontSize: MyFont.font13,
                fontWeight: MyFontWeight.regular,
              ),
            ),
            SizedBox(width: 2),
            GestureDetector(
              onTap: (){
                NavigatorUtil.push(context, ProtocolPage.routeName,arguments: 0);

              },
              child: Text(
                "隐私协议",
                style: TextStyle(
                  color: MyColors.color_27_27_27,
                  fontSize: MyFont.font13,
                  fontWeight: MyFontWeight.regular,
                  decoration: TextDecoration.underline,
                ),
              ),
            )
          ],
        )
      ],
    );
  }
}
